<div xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
	 xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:p="http://primefaces.org/ui">
<ui:composition template="template/basic/desktop.xhtml">
<ui:define name="title">Dashboard</ui:define>             
<ui:define name="main_body">

<p:layout id="dashboard-full-layout" fullPage="true" widgetVar="layoutWdgt">  
    <p:layoutUnit id="dashboard-center-layout" position="center" size="600">
		<p:tabView id="dashboardTabs" 
				   widgetVar="dashboardMainTabs" 
				   dynamic="true" cache="false" 
				   activeIndex="#{dashboardController.mainTabActiveIndex}" 
				   style="height:99%;margin: 0;padding: 0;">
				   
			<p:ajax event="tabChange" listener="#{dashboardController.onMainTabChangeListener}" />

		    <p:tab title="Dashboard">
		    	<ui:include src="layout/diningHall.xhtml"/>
		    </p:tab>

		    <p:tab title="Order Operation" disabled="#{orderOperationController.operatedOrderVo eq null}">
 				<ui:include src="layout/orderOperation.xhtml"/>
		    </p:tab>
		</p:tabView>
    </p:layoutUnit>
</p:layout>

<ui:include src="layout/dialogs.xhtml"/>

<p:ajaxStatus style="width:16px;height:16px;position:fixed;right:15px;bottom:10px"> 
	<f:facet name="start">
    	<h:graphicImage value="#{resource['image:loading.gif']}" alt="loading" />
    </f:facet>
    <f:facet name="complete">  
        <h:outputText value="" />  
    </f:facet>
</p:ajaxStatus>

</ui:define>		
</ui:composition>
</div>